<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/layui/layui.js"></script>
    <link href="/static/layui/css/layui.css" rel="stylesheet"></link>
</head>
<body>
{$form}
</body>
<script>
    layui.use('form', function(){
        var form=layui.form;
    });
</script>
</html>